package com.foton.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Slf4j
@RestController
@RequestMapping(value = "/health/api")
public class HeathController {


    @Value("${spring.application.name}")
    private String applicationName;


    @GetMapping( "/testHealth")
    public String testHealth(){
        return "current server is health::"+applicationName;
    }

}
